//
// Created by ins on 2021/3/7.
//

#ifndef SERVICE_ENEMYDAO_H
#define SERVICE_ENEMYDAO_H


#include <MidEnemyBean.h>
#include <iostream>
#include <string>
#include <list>
#include <EnemyBean.h>

using std::string;
using std::list;

class EnemyDao {
private:
    EnemyDao();
    ~EnemyDao();
    static EnemyDao *sInstance;
public:
    static EnemyDao* getInstance();
    void getMidEnemy(string nowmid, list<MidEnemyBean> &midEnemys);

    void getYEnemy(string id, EnemyBean &retEnemy);

    bool addMidEnemy(MidEnemyBean midEnemyTemp);
};


#endif //SERVICE_ENEMYDAO_H
